using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DAO;
using DTO;

namespace BUS
{
   public class XeBUS
    {
       public static DataTable LayThongTinTinhTrangXe()
       {
           DataTable dt = XeDAO.LayThongTinTinhTrangXe();
           return dt;
       }
        public static DataTable LayThongTinXe()
        {
            DataTable dt = XeDAO.LayThongTinXe();
            return dt;
        }
       public static DataTable LayThongTinTrongTai()
       {
           DataTable dt = XeDAO.LayThongTinTrongTai();
           return dt;
       }
       public static DataTable LayThongTinHangXe()
       {
           DataTable dt = XeDAO.LayThongTinHangXe();
           return dt;
       }
       public static DataTable LayThongTinLoaiXe()
       {
           DataTable dt = XeDAO.LayThongTinLoaiXe();
           return dt;
       }
       public static DataTable LayThongTinLoaiHangCho()
       {
           DataTable dt = XeDAO.LayThongTinLoaiHangCho();
           return dt;
       }
       #region 1. Inserting Xe Moi
       public static bool InsertXe(XeDTO xe)
       {
           if (XeDAO.KiemTraNhapXeMoi(xe.BienSo) == true)
           {
               return false;
           }
           return XeDAO.NhapXeMoi(xe);

       }
       #endregion
    }
}
